#!coding=utf-8
from django.conf.urls import patterns,include
from tastypie.api import Api
from webserver.handlers import  CatagoryResource,\
    GoodsResource, OrderItemResource, OrdersResource, UserResource,\
    BrandResource, CustAdrResource, CustAssessResource, FormatResource,\
    SaleInfoResource, CardItemResource, CardInfoResource, DeductionResource,\
    DeductionItemResource, ServicerResource, RoomstaResource,\
    UserFavoriteResource, GoodsResourceprice2, GoodsResourceprice1,\
    GoodsResourcesale2, GoodsResourcesale1

v1_api = Api(api_name='v1')
v1_api.register(CatagoryResource())
v1_api.register(BrandResource())
v1_api.register(GoodsResource())
v1_api.register(OrdersResource())
v1_api.register(OrderItemResource())
v1_api.register(UserResource())
v1_api.register(CustAdrResource())
v1_api.register(CustAssessResource())
v1_api.register(FormatResource())
v1_api.register(SaleInfoResource())
v1_api.register(CardInfoResource())
v1_api.register(CardItemResource())
v1_api.register(DeductionResource())
v1_api.register(DeductionItemResource())
v1_api.register(ServicerResource())
v1_api.register(RoomstaResource())
v1_api.register(UserFavoriteResource())
v1_api.register(GoodsResourceprice1())
v1_api.register(GoodsResourceprice2())
v1_api.register(GoodsResourcesale1())
v1_api.register(GoodsResourcesale2())


urlpatterns = patterns('',
    (r'^api/', include(v1_api.urls)),
)